<template>
    <f7-page @page:init="initAuthed()">
        <f7-navbar title="农民" back-link="返回" ></f7-navbar>
        <div>
            <img src="../../../static/img/user.jpg" width="30%" style="padding-left: 35%;padding-top:30px;display:block;text-align: center"/>
        </div>
        <div class="list-block">
            <ul>
                <li>
                    <div class="item-content">
                        <div class="item-media"><i class="icon icon-form-name"></i></div>
                        <div class="item-inner">
                            <div class="item-title label">姓名</div>
                            <div class="item-input">
                                {{farmerMsg.Name}}
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="item-content">
                        <div class="item-media"><i class="icon icon-form-name"></i></div>
                        <div class="item-inner">
                            <div class="item-title label">身份证号</div>
                            <div class="item-input">
                                {{farmerMsg.IdCard}}
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="item-content">
                        <div class="item-media"><i class="icon icon-form-name"></i></div>
                        <div class="item-inner">
                            <div class="item-title label">手机号</div>
                            <div class="item-input">
                                {{farmerMsg.Phoneno}}
                            </div>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
        <div class="content-block">
            <div class="upload-box">
                {{farmerMsg.IdCardPositive}}
            </div>
            <div class="upload-box">
                {{farmerMsg.IdCardNegative}}
            </div>
        </div>
    </f7-page>
</template>

<script>
    import data from '../../../src/data/index'
    export default{
        data(){
            return{
                farmerMsg:''
            }
        },
        methods:{
            initAuthed(){
                let that = this;
                data.gover.getFarmerMsg(this.$route.params.Id,function (data) {
                    that.farmerMsg = data;
                })
            }
        }
    }
</script>